package cn.com.dhcc.turbo.service.monitor;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class FtpOnlineUser{
	private static DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	private String userName;
	private Date loginTime;
	private String clienStr;
	
	public String getShowStr(){
		return "在线(登录时间："+df.format(loginTime)+",地址："+clienStr+")";
	}
	public FtpOnlineUser(String userName, Date loginTime, String clienStr) {
		super();
		this.userName = userName;
		this.loginTime = loginTime;
		this.clienStr = clienStr;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	public String getClienStr() {
		return clienStr;
	}
	public void setClienStr(String clienStr) {
		this.clienStr = clienStr;
	}
	@Override
	public String toString() {
		return "FtpOnlineUser [userName=" + userName + ", loginTime="
				+ loginTime + ", clienStr=" + clienStr + "]";
	}
	
}